id/email
password
forgot password | create account
about | help | prefs
ReadingBatcode reading practice

 

 

Athenian: List Practicelists1

prev  |  next  |  chance

Determine the value returned by the function.
by Bernie '21

def times_tables(x, y):
    result = []
    a = 0
    for i in range(y + 1):
        a = x * i
        result.append(a)
    return result
Function Call  Return Value
times_tables(5, 3)
times_tables(2, 10)
times_tables(3, 3)
times_tables(1, 10)

Experiment with this code on Gitpod.io

⬅ Back